<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<meta http-equiv="pragma" content="no-cache" />
	<link rel="stylesheet" href="/css/style.css" type="text/css"/>
	<script type="text/javascript" src="/js/jquery.js"></script>
</head>
<script type="text/javascript">
//////////////////////////////////////////////////////////////////////
////  email = "wenpin.qian@happyelements.com"                     ////
////  team = "Athene"                                             ////
////  warnings = "This is generated page,Do Not Modify!";         ////
////  tips = "Opera & IE not supported|Chrome & Safari sugguested"////
//////////////////////////////////////////////////////////////////////
var npc_unitId = window.dialogArguments;
var getnpc_unitUrl = "/npc_unit/get/";
var editnpc_unitUrl = "/npc_unit/edit/";
$(document).ready(function() {
	$.ajax({
		   type: "GET",
		   url: getnpc_unitUrl,
		   data: "npc_unitId=" + npc_unitId,
		   dataType: "json",
		   success: function(data) {
			   if(data.code > 0) {
				   var result = data.result;
				   $("#npc_unitId").html(result.npc_unitId);
				   $("#deployId").html(result.deployId);
				   $("#name").html('"'+result.name+'"');				   $("#desc").html('"'+result.desc+'"');				   $("#level").html(result.level);				   $("#career").html(result.career);				   $("#gender").html(result.gender);				   $("#npcId").html(result.npcId);				   $("#idx").html(result.idx);				   $("#pos").html(result.pos);				   $("#hp").html(result.hp);				   $("#attackId").html(result.attackId);				   $("#physicalatk").html(result.physicalatk);				   $("#physicaldef").html(result.physicaldef);				   $("#magicatk").html(result.magicatk);				   $("#magicdef").html(result.magicdef);				   $("#furyAttackRate").html(result.furyAttackRate);				   $("#hardAttackRate").html(result.hardAttackRate);				   $("#hurtIncValue").html(result.hurtIncValue);				   $("#hurtDecValue").html(result.hurtDecValue);				   $("#hurtIncPercent").html(result.hurtIncPercent);				   $("#hurtDecPercent").html(result.hurtDecPercent);				   $("#skills").html('"'+result.skills+'"');				   $("#equipment").html('"'+result.equipment+'"');				   $("#style").html('"'+result.style+'"');				   $("#npcunitres").html(result.npcunitres);				   				   
			   }else {
				   errDialog(data.message);
			   }
		   }
	});
});

</script>
<body>
<div class="json">
{<br/>
<span class="jsonkey">npc_unitId:</span><span id="npc_unitId"></span>,<br/>
<span class="jsonkey">deployId:</span><span id="deployId"></span>,<br/>
<span class="jsonkey">name:</span><span id="name" class="jsonvalue"></span>,<br/>
<span class="jsonkey">desc:</span><span id="desc" class="jsonvalue"></span>,<br/>
<span class="jsonkey">level:</span><span id="level" class="jsonvalue"></span>,<br/>
<span class="jsonkey">career:</span><span id="career" class="jsonvalue"></span>,<br/>
<span class="jsonkey">gender:</span><span id="gender" class="jsonvalue"></span>,<br/>
<span class="jsonkey">npcId:</span><span id="npcId" class="jsonvalue"></span>,<br/>
<span class="jsonkey">idx:</span><span id="idx" class="jsonvalue"></span>,<br/>
<span class="jsonkey">pos:</span><span id="pos" class="jsonvalue"></span>,<br/>
<span class="jsonkey">hp:</span><span id="hp" class="jsonvalue"></span>,<br/>
<span class="jsonkey">attackId:</span><span id="attackId" class="jsonvalue"></span>,<br/>
<span class="jsonkey">physicalatk:</span><span id="physicalatk" class="jsonvalue"></span>,<br/>
<span class="jsonkey">physicaldef:</span><span id="physicaldef" class="jsonvalue"></span>,<br/>
<span class="jsonkey">magicatk:</span><span id="magicatk" class="jsonvalue"></span>,<br/>
<span class="jsonkey">magicdef:</span><span id="magicdef" class="jsonvalue"></span>,<br/>
<span class="jsonkey">furyAttackRate:</span><span id="furyAttackRate" class="jsonvalue"></span>,<br/>
<span class="jsonkey">hardAttackRate:</span><span id="hardAttackRate" class="jsonvalue"></span>,<br/>
<span class="jsonkey">hurtIncValue:</span><span id="hurtIncValue" class="jsonvalue"></span>,<br/>
<span class="jsonkey">hurtDecValue:</span><span id="hurtDecValue" class="jsonvalue"></span>,<br/>
<span class="jsonkey">hurtIncPercent:</span><span id="hurtIncPercent" class="jsonvalue"></span>,<br/>
<span class="jsonkey">hurtDecPercent:</span><span id="hurtDecPercent" class="jsonvalue"></span>,<br/>
<span class="jsonkey">skills:</span><span id="skills" class="jsonvalue"></span>,<br/>
<span class="jsonkey">equipment:</span><span id="equipment" class="jsonvalue"></span>,<br/>
<span class="jsonkey">style:</span><span id="style" class="jsonvalue"></span>,<br/>
<span class="jsonkey">npcunitres:</span><span id="npcunitres" class="jsonvalue"></span><br/>
</br>
}
</div>
</body>